﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            Database.SetInitializer(new DbInit());
            //Database.SetInitializer(new DropCreateDatabaseAlways<Admin3000DbContext>());
            using (Admin3000DbContext db = new Admin3000DbContext())
            {
                //var list = db.Users.ToList();

                db.Brands.ToList();

                //Console.WriteLine("{0}\t{1}\t{2}\t{3}","Id","用户名","密码","创建时间");

                //foreach (var item in list)
                //{
                //    Console.WriteLine("{0}\t{1}\t{2}\t{3}",item.Id,item.UserName,item.Password,item.CreatedTime);
                //}
            }
            //System.Data.Entity.Database.SetInitializer(new DbInit());
        }
    }
}
